Include backslashes in args to 'fatal'.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 6 Dec 2002 15:55:20 +0000 (15:55 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 6 Dec 2002 15:55:20 +0000 (15:55 +0000)
gpsbabel/Makefile
gpsbabel/magnav.c
gpsbabel/main.c

index 003114d5b243491c52976df75900128b434752ce..ad0814f03b51a85cadb03378d4e18540cdae9f72 100644 (file)
@@ -31,8 +31,8 @@ dep:
        make clean && make CC="gcc -MMD"  && cat *.d */*.d > /tmp/dep
        echo Edit Makefile and bring in /tmp/dep
 
-VERSIONU=1_1_0_pre1206
-VERSIOND=1.1.0_pre1206
+VERSIONU=1_1_0_pre120602
+VERSIOND=1.1.0_pre120602
 release:
        rm -fr gpsbabel-$(VERSIOND)
        cvs export -r gpsbabel_$(VERSIONU) -d gpsbabel-$(VERSIOND) gpsbabel
index 730d3cfc2bfed23323ddb374bfa9a7fadf2183cf..c32f67f04695c14e99ce179681edf634cd93eeb2 100644 (file)
@@ -94,11 +94,11 @@ data_read(void)
        struct pdb_record *pdb_rec;
 
        if (NULL == (pdb = pdb_Read(fileno(file_in)))) {
-               fatal(MYNAME ": pdb_Read failed");
+               fatal(MYNAME ": pdb_Read failed\n");
        }
 
        if ((pdb->creator != MYCREATOR) || (pdb->type != MYTYPE)) {
-               fatal(MYNAME ": Not a Magellan Navigator file.");
+               fatal(MYNAME ": Not a Magellan Navigator file.\n");
        }
 
        for(pdb_rec = pdb->rec_index.rec; pdb_rec; pdb_rec=pdb_rec->next) {
@@ -204,11 +204,11 @@ my_writewpt(waypoint *wpt)
        opdb_rec = new_Record (0, 0, ct++, vdata-(char *)rec, (const ubyte *)rec);
 
        if (opdb_rec == NULL) {
-               fatal(MYNAME ": libpdb couldn't create record");
+               fatal(MYNAME ": libpdb couldn't create record\n");
        }
 
        if (pdb_AppendRecord(opdb, opdb_rec)) {
-               fatal(MYNAME ": libpdb couldn't append record");
+               fatal(MYNAME ": libpdb couldn't append record\n");
        }
 }
 
index 4e51dfce0a30705121e0875f3af65352338006bf..6e5cda912f6ec230f5f493f175b8c3ee1d796557 100644 (file)
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
                char *optarg;
 
                if (argv[argn][0] != '-') {
-                       fatal ("argument '%s' not understood",argv[argn]);
+                       fatal ("argument '%s' not understood\n",argv[argn]);
                }
 
                if (argv[argn][1] == '?' || argv[argn][1] == 'h') {
@@ -82,7 +82,7 @@ main(int argc, char *argv[])
                                fname = optarg;
                                argn++;
                                if (ivecs == NULL) {
-                                       fatal ("No valid input type specified");
+                                       fatal ("No valid input type specified\n");
                                }
                                ivecs->rd_init(fname, ivec_opts);
                                ivecs->read();